cmake_minimum_required(VERSION 3.17)
project(wxSimple)

set(CMAKE_CXX_STANDARD 14)

add_definitions("-D WXUSINGDLL")
#__WXMAC__
#add_definitions("-D __WXGTK__")
add_definitions("-D __WXMSW__")
add_definitions("-D _DEBUG_" )

add_executable(wxSimple main.cpp ChatWnd.cpp MyApp.cpp MainFrame.cpp BlankPanel.cpp)

target_link_libraries( wxSimple "pthread" "sqlite3"
        "wx_baseu_xml-3.0"
        "wx_gtk3u_core-3.0"
        "wx_gtk3u_adv-3.0"
        "wx_baseu_net-3.0" "wx_baseu-3.0" )

#H:\tmp\wxWidgets-3.1.3\x86_build\lib\vc_dll
target_link_libraries(wxSimple aprutil-1 ldap lber apr-1 -ljsoncpp -lcurl )

target_include_directories(wxSimple PUBLIC
        #"H:/tmp/wxWidgets-3.1.3/include"
        #"H:/tmp/wxWidgets-3.1.3/include/wx"
        #"H:/tmp/wxWidgets-3.1.3/include/msvc"
        #"H:/tmp/wxWidgets-3.1.3/x86_build/lib/vc_dll/mswud"
        )

#LINK_DIRECTORIES("H:/tmp/wxWidgets-3.1.3/x86_build/lib/vc_dll" )